package org.duoyi.jdm.services;


import com.develop.jawin.COMException;
import org.duoyi.jdm.Dm.DmInstant;
import org.duoyi.jdm.utils.JdmUtil;
import org.duoyi.striver.consts.Picture;
import org.duoyi.striver.global.DmManager;

import java.io.IOException;

/**
 * @Auth yaozhongjie
 * @Date 2019/6/25 11:22
 **/
public class Jdm {

    public static void main(String[] args) throws COMException, IOException {
        JdmUtil.setLibPath();
        DmInstant dmInstant = new DmInstant("dm.dmsoft");
        DmManager.put(dmInstant);
        int hw = dmInstant.FindWindow("", "神武4手游");
        int i = dmInstant.BindWindow(hw, "dx2", "windows3", "windows", 0);
        System.out.println(Picture.英雄试炼_狮驼岭_未完成标识.find());

        dmInstant.UnBindWindow();


    }

}
